home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2004 October / My Disc.iso / patch / UT2004 Bonus Pack / ut2004-ecebonuspack.exe / System / OnslaughtBP.u / ONSDualACSideGun_ONSDualACGatlingGunPawn_ScriptText.TextBuffer < prev    next >
Unknown  |  2004-09-14  |  5.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 51 53 2f 2f 2d 2d 2d 2d |........|QS//----|
|00000010| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000020| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000040| 2d 2d 2d 2d 2d 2d 2d 0d | 0a 2f 2f 0d 0a 2f 2f 2d |-------.|.//..//-|
|00000050| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000060| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000070| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000080| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 0a 63 6c 61 73 |--------|--..clas|
|00000090| 73 20 4f 4e 53 44 75 61 | 6c 41 43 47 61 74 6c 69 |s ONSDua|lACGatli|
|000000a0| 6e 67 47 75 6e 50 61 77 | 6e 20 65 78 74 65 6e 64 |ngGunPaw|n extend|
|000000b0| 73 20 4f 4e 53 57 65 61 | 70 6f 6e 50 61 77 6e 3b |s ONSWea|ponPawn;|
|000000c0| 0d 0a 0d 0a 76 61 72 20 | 09 09 09 4d 61 74 65 72 |....var |...Mater|
|000000d0| 69 61 6c 20 09 4c 6f 63 | 6b 65 64 54 65 78 74 75 |ial .Loc|kedTextu|
|000000e0| 72 65 3b 0d 0a 76 61 72 | 20 09 09 09 4d 61 74 65 |re;..var| ...Mate|
|000000f0| 72 69 61 6c 20 09 4c 6f | 63 6b 65 64 45 66 66 65 |rial .Lo|ckedEffe|
|00000100| 63 74 3b 0d 0a 76 61 72 | 20 6c 6f 63 61 6c 69 7a |ct;..var| localiz|
|00000110| 65 64 20 09 73 74 72 69 | 6e 67 09 20 09 4c 6f 63 |ed .stri|ng. .Loc|
|00000120| 6b 65 64 4d 73 67 3b 0d | 0a 76 61 72 20 50 72 6f |kedMsg;.|.var Pro|
|00000130| 6a 65 63 74 69 6c 65 20 | 49 6e 63 6f 6d 69 6e 67 |jectile |Incoming|
|00000140| 3b 0d 0a 76 61 72 20 54 | 65 78 52 6f 74 61 74 6f |;..var T|exRotato|
|00000150| 72 20 53 70 69 6e 43 69 | 72 63 6c 65 73 5b 32 5d |r SpinCi|rcles[2]|
|00000160| 2c 20 53 70 69 6e 53 71 | 75 61 72 65 3b 0d 0a 76 |, SpinSq|uare;..v|
|00000170| 61 72 20 50 72 6f 6a 65 | 63 74 69 6c 65 20 49 67 |ar Proje|ctile Ig|
|00000180| 6e 6f 72 65 64 4d 69 73 | 73 69 6c 65 2c 20 57 61 |noredMis|sile, Wa|
|00000190| 74 63 68 65 64 4d 69 73 | 73 69 6c 65 3b 0d 0a 0d |tchedMis|sile;...|
|000001a0| 0a 2f 2f 4e 6f 74 69 66 | 79 20 76 65 68 69 63 6c |.//Notif|y vehicl|
|000001b0| 65 20 74 68 61 74 20 61 | 6e 20 65 6e 65 6d 79 20 |e that a|n enemy |
|000001c0| 68 61 73 20 6c 6f 63 6b | 65 64 20 6f 6e 20 74 6f |has lock|ed on to|
|000001d0| 20 69 74 0d 0a 66 75 6e | 63 74 69 6f 6e 20 49 6e | it..fun|ction In|
|000001e0| 63 6f 6d 69 6e 67 4d 69 | 73 73 69 6c 65 28 50 72 |comingMi|ssile(Pr|
|000001f0| 6f 6a 65 63 74 69 6c 65 | 20 50 29 0d 0a 7b 0d 0a |ojectile| P)..{..|
|00000200| 09 69 66 20 28 20 49 67 | 6e 6f 72 65 64 4d 69 73 |.if ( Ig|noredMis|
|00000210| 73 69 6c 65 20 3d 3d 20 | 50 20 29 0d 0a 09 09 72 |sile == |P )....r|
|00000220| 65 74 75 72 6e 3b 0d 0a | 0d 0a 09 69 66 20 28 20 |eturn;..|...if ( |
|00000230| 57 61 74 63 68 65 64 4d | 69 73 73 69 6c 65 20 21 |WatchedM|issile !|
|00000240| 3d 20 50 20 29 0d 0a 09 | 7b 0d 0a 09 09 69 66 20 |= P )...|{....if |
|00000250| 28 20 28 42 6f 74 28 43 | 6f 6e 74 72 6f 6c 6c 65 |( (Bot(C|ontrolle|
|00000260| 72 29 20 3d 3d 20 4e 6f | 6e 65 29 20 7c 7c 20 28 |r) == No|ne) || (|
|00000270| 42 6f 74 28 43 6f 6e 74 | 72 6f 6c 6c 65 72 29 2e |Bot(Cont|roller).|
|00000280| 53 6b 69 6c 6c 20 3c 20 | 32 20 2b 20 33 2a 46 52 |Skill < |2 + 3*FR|
|00000290| 61 6e 64 28 29 29 20 29 | 0d 0a 09 09 7b 0d 0a 09 |and()) )|....{...|
|000002a0| 09 09 69 66 20 28 20 28 | 43 6f 6e 74 72 6f 6c 6c |..if ( (|Controll|
|000002b0| 65 72 20 21 3d 20 4e 6f | 6e 65 29 20 7c 7c 20 28 |er != No|ne) || (|
|000002c0| 4c 65 76 65 6c 2e 47 61 | 6d 65 2e 47 61 6d 65 44 |Level.Ga|me.GameD|
|000002d0| 69 66 66 69 63 75 6c 74 | 79 20 3c 20 33 20 2b 20 |ifficult|y < 3 + |
|000002e0| 33 2a 46 52 61 6e 64 28 | 29 29 20 7c 7c 20 28 42 |3*FRand(|)) || (B|
|000002f0| 6f 74 28 56 65 68 69 63 | 6c 65 42 61 73 65 2e 43 |ot(Vehic|leBase.C|
|00000300| 6f 6e 74 72 6f 6c 6c 65 | 72 29 20 3d 3d 20 4e 6f |ontrolle|r) == No|
|00000310| 6e 65 29 20 29 0d 0a 09 | 09 09 7b 0d 0a 09 09 09 |ne) )...|..{.....|
|00000320| 09 49 67 6e 6f 72 65 64 | 4d 69 73 73 69 6c 65 20 |.Ignored|Missile |
|00000330| 3d 20 50 3b 0d 0a 09 09 | 09 09 72 65 74 75 72 6e |= P;....|..return|
|00000340| 3b 0d 0a 09 09 09 7d 0d | 0a 09 09 7d 0d 0a 09 09 |;.....}.|...}....|
|00000350| 57 61 74 63 68 65 64 4d | 69 73 73 69 6c 65 20 3d |WatchedM|issile =|
|00000360| 20 50 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 2f 2f 20 46 | P;...}.|....// F|
|00000370| 49 52 45 20 43 48 41 46 | 46 20 69 66 20 6d 69 73 |IRE CHAF|F if mis|
|00000380| 73 69 6c 65 20 6e 65 61 | 72 62 79 0d 0a 09 69 66 |sile nea|rby...if|
|00000390| 20 28 20 56 53 69 7a 65 | 28 56 65 68 69 63 6c 65 | ( VSize|(Vehicle|
|000003a0| 42 61 73 65 2e 4c 6f 63 | 61 74 69 6f 6e 20 2d 20 |Base.Loc|ation - |
|000003b0| 50 2e 4c 6f 63 61 74 69 | 6f 6e 29 20 3c 20 31 30 |P.Locati|on) < 10|
|000003c0| 30 30 20 2b 20 63 6c 61 | 73 73 27 4f 4e 53 44 65 |00 + cla|ss'ONSDe|
|000003d0| 63 6f 79 27 2e 44 65 66 | 61 75 6c 74 2e 44 65 63 |coy'.Def|ault.Dec|
|000003e0| 6f 79 52 61 6e 67 65 20 | 29 0d 0a 09 7b 0d 0a 09 |oyRange |)...{...|
|000003f0| 09 69 66 20 28 20 43 6f | 6e 74 72 6f 6c 6c 65 72 |.if ( Co|ntroller|
|00000400| 20 3d 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 7b 0d | == None| )....{.|
|00000410| 0a 09 09 09 69 66 20 28 | 20 42 6f 74 28 56 65 68 |....if (| Bot(Veh|
|00000420| 69 63 6c 65 42 61 73 65 | 2e 43 6f 6e 74 72 6f 6c |icleBase|.Control|
|00000430| 6c 65 72 29 20 3d 3d 20 | 4e 6f 6e 65 20 29 0d 0a |ler) == |None )..|
|00000440| 09 09 09 7b 0d 0a 09 09 | 09 09 49 67 6e 6f 72 65 |...{....|..Ignore|
|00000450| 64 4d 69 73 73 69 6c 65 | 20 3d 20 50 3b 0d 0a 09 |dMissile| = P;...|
|00000460| 09 09 09 72 65 74 75 72 | 6e 3b 0d 0a 09 09 09 7d |...retur|n;.....}|
|00000470| 0d 0a 09 09 09 56 65 68 | 69 63 6c 65 42 61 73 65 |.....Veh|icleBase|
|00000480| 2e 57 65 61 70 6f 6e 73 | 5b 30 5d 2e 57 65 61 70 |.Weapons|[0].Weap|
|00000490| 6f 6e 43 65 61 73 65 46 | 69 72 65 28 56 65 68 69 |onCeaseF|ire(Vehi|
|000004a0| 63 6c 65 42 61 73 65 2e | 43 6f 6e 74 72 6f 6c 6c |cleBase.|Controll|
|000004b0| 65 72 2c 20 74 72 75 65 | 29 3b 0d 0a 09 09 09 56 |er, true|);.....V|
|000004c0| 65 68 69 63 6c 65 42 61 | 73 65 2e 57 65 61 70 6f |ehicleBa|se.Weapo|
|000004d0| 6e 73 5b 31 5d 2e 57 65 | 61 70 6f 6e 43 65 61 73 |ns[1].We|aponCeas|
|000004e0| 65 46 69 72 65 28 56 65 | 68 69 63 6c 65 42 61 73 |eFire(Ve|hicleBas|
|000004f0| 65 2e 43 6f 6e 74 72 6f | 6c 6c 65 72 2c 20 74 72 |e.Contro|ller, tr|
|00000500| 75 65 29 3b 0d 0a 09 09 | 7d 0d 0a 09 09 65 6c 73 |ue);....|}....els|
|00000510| 65 20 69 66 20 28 20 42 | 6f 74 28 43 6f 6e 74 72 |e if ( B|ot(Contr|
|00000520| 6f 6c 6c 65 72 29 20 3d | 3d 20 4e 6f 6e 65 20 29 |oller) =|= None )|
|00000530| 0d 0a 09 09 7b 0d 0a 09 | 09 09 49 67 6e 6f 72 65 |....{...|..Ignore|
|00000540| 64 4d 69 73 73 69 6c 65 | 20 3d 20 50 3b 0d 0a 09 |dMissile| = P;...|
|00000550| 09 09 72 65 74 75 72 6e | 3b 0d 0a 09 09 7d 0d 0a |..return|;....}..|
|00000560| 09 09 49 6e 63 6f 6d 69 | 6e 67 20 3d 20 50 3b 0d |..Incomi|ng = P;.|
|00000570| 0a 09 09 49 67 6e 6f 72 | 65 64 4d 69 73 73 69 6c |...Ignor|edMissil|
|00000580| 65 20 3d 20 50 3b 0d 0a | 09 09 47 75 6e 2e 43 61 |e = P;..|..Gun.Ca|
|00000590| 6c 63 57 65 61 70 6f 6e | 46 69 72 65 28 29 3b 0d |lcWeapon|Fire();.|
|000005a0| 0a 09 09 47 75 6e 2e 41 | 6c 74 46 69 72 65 28 56 |...Gun.A|ltFire(V|
|000005b0| 65 68 69 63 6c 65 42 61 | 73 65 2e 43 6f 6e 74 72 |ehicleBa|se.Contr|
|000005c0| 6f 6c 6c 65 72 29 3b 0d | 0a 09 7d 0d 0a 7d 0d 0a |oller);.|..}..}..|
|000005d0| 0d 0a 2f 2f 20 2d 20 43 | 65 6e 74 65 72 44 72 61 |..// - C|enterDra|
|000005e0| 77 20 2d 20 44 72 61 77 | 73 20 61 6e 20 69 6d 61 |w - Draw|s an ima|
|000005f0| 67 65 73 20 63 65 6e 74 | 65 72 65 64 20 61 72 6f |ges cent|ered aro|
|00000600| 75 6e 64 20 61 20 70 6f | 69 6e 74 2e 20 20 4f 70 |und a po|int. Op|
|00000610| 74 69 6f 6e 61 6c 6c 79 | 2c 20 69 74 20 63 61 6e |tionally|, it can|
|00000620| 20 73 74 72 65 74 63 68 | 20 74 68 65 20 69 6d 61 | stretch| the ima|
|00000630| 67 65 2e 0d 0a 73 69 6d | 75 6c 61 74 65 64 20 66 |ge...sim|ulated f|
|00000640| 75 6e 63 74 69 6f 6e 20 | 43 65 6e 74 65 72 44 72 |unction |CenterDr|
|00000650| 61 77 28 43 61 6e 76 61 | 73 20 43 61 6e 76 61 73 |aw(Canva|s Canvas|
|00000660| 2c 20 4d 61 74 65 72 69 | 61 6c 20 4d 61 74 2c 20 |, Materi|al Mat, |
|00000670| 66 6c 6f 61 74 20 78 2c | 20 66 6c 6f 61 74 20 79 |float x,| float y|
|00000680| 2c 20 66 6c 6f 61 74 20 | 55 53 63 61 6c 65 2c 20 |, float |UScale, |
|00000690| 66 6c 6f 61 74 20 56 53 | 63 61 6c 65 2c 20 6f 70 |float VS|cale, op|
|000006a0| 74 69 6f 6e 61 6c 20 62 | 6f 6f 6c 20 62 53 74 72 |tional b|ool bStr|
|000006b0| 65 74 63 68 65 64 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |etched).|.{...loc|
|000006c0| 61 6c 20 66 6c 6f 61 74 | 20 75 2c 76 2c 77 2c 68 |al float| u,v,w,h|
|000006d0| 3b 0d 0a 0d 0a 09 75 20 | 3d 20 4d 61 74 2e 4d 61 |;.....u |= Mat.Ma|
|000006e0| 74 65 72 69 61 6c 55 53 | 69 7a 65 28 29 3b 20 77 |terialUS|ize(); w|
|000006f0| 20 3d 20 75 20 2a 20 55 | 53 63 61 6c 65 3b 0d 0a | = u * U|Scale;..|
|00000700| 09 76 20 3d 20 4d 61 74 | 2e 4d 61 74 65 72 69 61 |.v = Mat|.Materia|
|00000710| 6c 56 53 69 7a 65 28 29 | 3b 20 68 20 3d 20 76 20 |lVSize()|; h = v |
|00000720| 2a 20 56 53 63 61 6c 65 | 3b 0d 0a 09 43 61 6e 76 |* VScale|;...Canv|
|00000730| 61 73 2e 53 65 74 50 6f | 73 28 78 20 2d 20 28 77 |as.SetPo|s(x - (w|
|00000740| 2f 32 29 2c 20 79 20 2d | 20 28 68 2f 32 29 20 29 |/2), y -| (h/2) )|
|00000750| 3b 0d 0a 09 69 66 20 28 | 21 62 53 74 72 65 74 63 |;...if (|!bStretc|
|00000760| 68 65 64 29 0d 0a 09 09 | 43 61 6e 76 61 73 2e 44 |hed)....|Canvas.D|
|00000770| 72 61 77 54 69 6c 65 28 | 4d 61 74 2c 77 2c 68 2c |rawTile(|Mat,w,h,|
|00000780| 30 2c 30 2c 75 2c 76 29 | 3b 0d 0a 09 65 6c 73 65 |0,0,u,v)|;...else|
|00000790| 0d 0a 09 09 43 61 6e 76 | 61 73 2e 44 72 61 77 54 |....Canv|as.DrawT|
|000007a0| 69 6c 65 53 74 72 65 74 | 63 68 65 64 28 4d 61 74 |ileStret|ched(Mat|
|000007b0| 2c 77 2c 68 29 3b 0d 0a | 7d 0d 0a 0d 0a 0d 0a 73 |,w,h);..|}......s|
|000007c0| 69 6d 75 6c 61 74 65 64 | 20 66 75 6e 63 74 69 6f |imulated| functio|
|000007d0| 6e 20 44 72 61 77 48 55 | 44 28 43 61 6e 76 61 73 |n DrawHU|D(Canvas|
|000007e0| 20 43 61 6e 76 61 73 29 | 0d 0a 7b 0d 0a 09 43 61 | Canvas)|..{...Ca|
|000007f0| 6e 76 61 73 2e 53 74 79 | 6c 65 20 3d 20 35 3b 0d |nvas.Sty|le = 5;.|
|00000800| 0a 09 69 66 20 28 20 21 | 4c 65 76 65 6c 2e 49 73 |..if ( !|Level.Is|
|00000810| 53 6f 66 74 77 61 72 65 | 52 65 6e 64 65 72 69 6e |Software|Renderin|
|00000820| 67 28 29 20 29 0d 0a 09 | 7b 0d 0a 09 09 43 61 6e |g() )...|{....Can|
|00000830| 76 61 73 2e 44 72 61 77 | 43 6f 6c 6f 72 2e 52 20 |vas.Draw|Color.R |
|00000840| 3d 20 32 35 35 3b 0d 0a | 09 09 43 61 6e 76 61 73 |= 255;..|..Canvas|
|00000850| 2e 44 72 61 77 43 6f 6c | 6f 72 2e 47 20 3d 20 32 |.DrawCol|or.G = 2|
|00000860| 35 35 3b 0d 0a 09 09 43 | 61 6e 76 61 73 2e 44 72 |55;....C|anvas.Dr|
|00000870| 61 77 43 6f 6c 6f 72 2e | 42 20 3d 20 32 35 35 3b |awColor.|B = 255;|
|00000880| 0d 0a 09 09 43 61 6e 76 | 61 73 2e 44 72 61 77 43 |....Canv|as.DrawC|
|00000890| 6f 6c 6f 72 2e 41 20 3d | 20 35 30 3b 0d 0a 09 09 |olor.A =| 50;....|
|000008a0| 43 61 6e 76 61 73 2e 44 | 72 61 77 54 69 6c 65 28 |Canvas.D|rawTile(|
|000008b0| 20 4d 61 74 65 72 69 61 | 6c 27 44 6f 6d 50 4c 69 | Materia|l'DomPLi|
|000008c0| 6e 65 73 47 50 27 2c 20 | 43 61 6e 76 61 73 2e 53 |nesGP', |Canvas.S|
|000008d0| 69 7a 65 58 2c 20 43 61 | 6e 76 61 73 2e 53 69 7a |izeX, Ca|nvas.Siz|
|000008e0| 65 59 2c 20 30 2c 20 30 | 2c 20 32 35 36 2c 20 32 |eY, 0, 0|, 256, 2|
|000008f0| 35 36 29 3b 0d 0a 09 7d | 0d 0a 0d 0a 20 20 20 20 |56);...}|.... |
|00000900| 43 61 6e 76 61 73 2e 53 | 74 79 6c 65 20 3d 20 31 |Canvas.S|tyle = 1|
|00000910| 3b 0d 0a 20 20 20 20 43 | 61 6e 76 61 73 2e 44 72 |;.. C|anvas.Dr|
|00000920| 61 77 43 6f 6c 6f 72 2e | 52 20 3d 20 32 35 35 3b |awColor.|R = 255;|
|00000930| 0d 0a 09 43 61 6e 76 61 | 73 2e 44 72 61 77 43 6f |...Canva|s.DrawCo|
|00000940| 6c 6f 72 2e 47 20 3d 20 | 32 35 35 3b 0d 0a 09 43 |lor.G = |255;...C|
|00000950| 61 6e 76 61 73 2e 44 72 | 61 77 43 6f 6c 6f 72 2e |anvas.Dr|awColor.|
|00000960| 42 20 3d 20 32 35 35 3b | 0d 0a 09 43 61 6e 76 61 |B = 255;|...Canva|
|00000970| 73 2e 44 72 61 77 43 6f | 6c 6f 72 2e 41 20 3d 20 |s.DrawCo|lor.A = |
|00000980| 32 35 35 3b 0d 0a 0d 0a | 09 43 61 6e 76 61 73 2e |255;....|.Canvas.|
|00000990| 53 65 74 50 6f 73 28 30 | 2c 30 29 3b 0d 0a 20 20 |SetPos(0|,0);.. |
|000009a0| 20 20 43 61 6e 76 61 73 | 2e 44 72 61 77 54 69 6c | Canvas|.DrawTil|
|000009b0| 65 28 20 4d 61 74 65 72 | 69 61 6c 27 54 75 72 72 |e( Mater|ial'Turr|
|000009c0| 65 74 48 75 64 32 27 2c | 20 43 61 6e 76 61 73 2e |etHud2',| Canvas.|
|000009d0| 53 69 7a 65 58 2c 20 43 | 61 6e 76 61 73 2e 53 69 |SizeX, C|anvas.Si|
|000009e0| 7a 65 59 2c 20 30 2c 20 | 30 2c 20 31 30 32 34 2c |zeY, 0, |0, 1024,|
|000009f0| 20 37 36 38 29 3b 0d 0a | 20 20 20 20 43 61 6e 76 | 768);..| Canv|
|00000a00| 61 73 2e 53 65 74 50 6f | 73 28 30 2c 30 29 3b 0d |as.SetPo|s(0,0);.|
|00000a10| 0a 0d 0a 2f 2f 20 20 52 | 65 6d 6f 76 65 20 4d 65 |...// R|emove Me|
|00000a20| 20 3a 20 66 6f 72 20 74 | 65 73 74 69 6e 67 0d 0a | : for t|esting..|
|00000a30| 2f 2f 09 50 72 6f 6a 65 | 63 74 69 6c 65 50 6f 73 |//.Proje|ctilePos|
|00000a40| 74 52 65 6e 64 65 72 32 | 44 28 4e 6f 6e 65 2c 43 |tRender2|D(None,C|
|00000a50| 61 6e 76 61 73 2c 31 34 | 30 2c 31 34 30 29 3b 0d |anvas,14|0,140);.|
|00000a60| 0a 0d 0a 7d 0d 0a 0d 0a | 73 69 6d 75 6c 61 74 65 |...}....|simulate|
|00000a70| 64 20 66 75 6e 63 74 69 | 6f 6e 20 50 72 6f 6a 65 |d functi|on Proje|
|00000a80| 63 74 69 6c 65 50 6f 73 | 74 52 65 6e 64 65 72 32 |ctilePos|tRender2|
|00000a90| 44 28 50 72 6f 6a 65 63 | 74 69 6c 65 20 50 2c 20 |D(Projec|tile P, |
|00000aa0| 43 61 6e 76 61 73 20 43 | 2c 20 66 6c 6f 61 74 20 |Canvas C|, float |
|00000ab0| 53 63 72 65 65 6e 4c 6f | 63 58 2c 20 66 6c 6f 61 |ScreenLo|cX, floa|
|00000ac0| 74 20 53 63 72 65 65 6e | 4c 6f 63 59 29 0d 0a 7b |t Screen|LocY)..{|
|00000ad0| 0d 0a 09 6c 6f 63 61 6c | 20 66 6c 6f 61 74 20 73 |...local| float s|
|00000ae0| 63 61 6c 65 2c 20 78 6c | 2c 79 6c 3b 0d 0a 09 6c |cale, xl|,yl;...l|
|00000af0| 6f 63 61 6c 20 50 6c 61 | 79 65 72 43 6f 6e 74 72 |ocal Pla|yerContr|
|00000b00| 6f 6c 6c 65 72 20 50 43 | 3b 0d 0a 09 6c 6f 63 61 |oller PC|;...loca|
|00000b10| 6c 20 4f 4e 53 48 75 64 | 4f 6e 73 6c 61 75 67 68 |l ONSHud|Onslaugh|
|00000b20| 74 20 48 3b 0d 0a 0d 0a | 09 50 43 20 3d 20 6c 65 |t H;....|.PC = le|
|00000b30| 76 65 6c 2e 47 65 74 4c | 6f 63 61 6c 50 6c 61 79 |vel.GetL|ocalPlay|
|00000b40| 65 72 43 6f 6e 74 72 6f | 6c 6c 65 72 28 29 3b 0d |erContro|ller();.|
|00000b50| 0a 09 69 66 20 28 50 43 | 3d 3d 4e 6f 6e 65 29 0d |..if (PC|==None).|
|00000b60| 0a 09 09 72 65 74 75 72 | 6e 3b 0d 0a 0d 0a 09 48 |...retur|n;.....H|
|00000b70| 20 3d 20 4f 4e 53 48 75 | 64 4f 6e 73 6c 61 75 67 | = ONSHu|dOnslaug|
|00000b80| 68 74 28 50 43 2e 4d 79 | 48 75 64 29 3b 0d 0a 09 |ht(PC.My|Hud);...|
|00000b90| 69 66 20 28 48 3d 3d 4e | 6f 6e 65 29 0d 0a 09 09 |if (H==N|one)....|
|00000ba0| 72 65 74 75 72 6e 3b 0d | 0a 0d 0a 09 43 2e 53 65 |return;.|....C.Se|
|00000bb0| 74 44 72 61 77 43 6f 6c | 6f 72 28 32 35 35 2c 36 |tDrawCol|or(255,6|
|00000bc0| 34 2c 36 34 2c 32 35 35 | 29 3b 0d 0a 09 43 2e 46 |4,64,255|);...C.F|
|00000bd0| 6f 6e 74 20 3d 20 48 2e | 47 65 74 43 6f 6e 73 6f |ont = H.|GetConso|
|00000be0| 6c 65 46 6f 6e 74 28 43 | 29 3b 0d 0a 09 43 2e 53 |leFont(C|);...C.S|
|00000bf0| 74 72 4c 65 6e 28 4c 6f | 63 6b 65 64 4d 73 67 2c |trLen(Lo|ckedMsg,|
|00000c00| 78 6c 2c 79 6c 29 3b 0d | 0a 0d 0a 09 73 63 61 6c |xl,yl);.|....scal|
|00000c10| 65 20 3d 20 59 4c 20 2f | 20 31 38 3b 0d 0a 0d 0a |e = YL /| 18;....|
|00000c20| 09 43 65 6e 74 65 72 44 | 72 61 77 28 43 2c 53 70 |.CenterD|raw(C,Sp|
|00000c30| 69 6e 43 69 72 63 6c 65 | 73 5b 30 5d 2c 53 63 72 |inCircle|s[0],Scr|
|00000c40| 65 65 6e 4c 6f 63 58 2c | 53 63 72 65 65 6e 4c 6f |eenLocX,|ScreenLo|
|00000c50| 63 59 2c 30 2e 36 35 2a | 53 63 61 6c 65 2c 30 2e |cY,0.65*|Scale,0.|
|00000c60| 36 35 2a 53 63 61 6c 65 | 29 3b 0d 0a 09 43 65 6e |65*Scale|);...Cen|
|00000c70| 74 65 72 44 72 61 77 28 | 43 2c 53 70 69 6e 43 69 |terDraw(|C,SpinCi|
|00000c80| 72 63 6c 65 73 5b 31 5d | 2c 53 63 72 65 65 6e 4c |rcles[1]|,ScreenL|
|00000c90| 6f 63 58 2c 53 63 72 65 | 65 6e 4c 6f 63 59 2c 53 |ocX,Scre|enLocY,S|
|00000ca0| 63 61 6c 65 2c 53 63 61 | 6c 65 29 3b 0d 0a 09 43 |cale,Sca|le);...C|
|00000cb0| 2e 53 65 74 44 72 61 77 | 43 6f 6c 6f 72 28 32 35 |.SetDraw|Color(25|
|00000cc0| 35 2c 32 35 35 2c 36 34 | 2c 32 35 35 29 3b 0d 0a |5,255,64|,255);..|
|00000cd0| 09 43 65 6e 74 65 72 44 | 72 61 77 28 43 2c 53 70 |.CenterD|raw(C,Sp|
|00000ce0| 69 6e 53 71 75 61 72 65 | 2c 53 63 72 65 65 6e 4c |inSquare|,ScreenL|
|00000cf0| 6f 63 58 2c 53 63 72 65 | 65 6e 4c 6f 63 59 2c 53 |ocX,Scre|enLocY,S|
|00000d00| 63 61 6c 65 2c 53 63 61 | 6c 65 29 3b 0d 0a 0d 0a |cale,Sca|le);....|
|00000d10| 09 43 2e 53 65 74 44 72 | 61 77 43 6f 6c 6f 72 28 |.C.SetDr|awColor(|
|00000d20| 32 35 35 2c 36 34 2c 36 | 34 2c 32 35 35 29 3b 0d |255,64,6|4,255);.|
|00000d30| 0a 09 43 65 6e 74 65 72 | 44 72 61 77 28 43 2c 6d |..Center|Draw(C,m|
|00000d40| 61 74 65 72 69 61 6c 27 | 4f 4e 53 5f 43 69 63 5f |aterial'|ONS_Cic_|
|00000d50| 49 6e 66 6f 27 2c 53 63 | 72 65 65 6e 4c 6f 63 58 |Info',Sc|reenLocX|
|00000d60| 2c 53 63 72 65 65 6e 4c | 6f 63 59 2c 53 63 61 6c |,ScreenL|ocY,Scal|
|00000d70| 65 2c 53 63 61 6c 65 29 | 3b 0d 0a 09 43 2e 53 65 |e,Scale)|;...C.Se|
|00000d80| 74 50 6f 73 28 53 63 72 | 65 65 6e 4c 6f 63 58 2c |tPos(Scr|eenLocX,|
|00000d90| 20 53 63 72 65 65 6e 4c | 6f 63 59 20 2d 20 28 31 | ScreenL|ocY - (1|
|00000da0| 36 2a 53 63 61 6c 65 29 | 20 29 3b 0d 0a 09 43 2e |6*Scale)| );...C.|
|00000db0| 44 72 61 77 54 69 6c 65 | 28 6d 61 74 65 72 69 61 |DrawTile|(materia|
|00000dc0| 6c 27 4f 4e 53 5f 43 69 | 63 5f 50 6c 61 74 65 27 |l'ONS_Ci|c_Plate'|
|00000dd0| 2c 58 4c 2b 28 34 38 2a | 53 63 61 6c 65 29 2c 33 |,XL+(48*|Scale),3|
|00000de0| 32 2a 53 63 61 6c 65 2c | 30 2c 30 2c 31 32 38 2c |2*Scale,|0,0,128,|
|00000df0| 33 32 29 3b 0d 0a 0d 0a | 09 43 2e 53 65 74 44 72 |32);....|.C.SetDr|
|00000e00| 61 77 43 6f 6c 6f 72 28 | 32 35 35 2c 32 35 35 2c |awColor(|255,255,|
|00000e10| 30 2c 32 35 35 29 3b 0d | 0a 09 43 2e 53 65 74 50 |0,255);.|..C.SetP|
|00000e20| 6f 73 28 53 63 72 65 65 | 6e 4c 6f 63 58 2b 20 28 |os(Scree|nLocX+ (|
|00000e30| 32 38 2a 53 63 61 6c 65 | 29 2c 20 53 63 72 65 65 |28*Scale|), Scree|
|00000e40| 6e 4c 6f 63 59 20 2d 20 | 28 36 2a 53 63 61 6c 65 |nLocY - |(6*Scale|
|00000e50| 29 20 29 3b 0d 0a 09 43 | 2e 44 72 61 77 54 65 78 |) );...C|.DrawTex|
|00000e60| 74 28 4c 6f 63 6b 65 64 | 4d 73 67 2c 74 72 75 65 |t(Locked|Msg,true|
|00000e70| 29 3b 0d 0a 7d 0d 0a 0d | 0a 0d 0a 73 69 6d 75 6c |);..}...|...simul|
|00000e80| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 43 6c |ated fun|ction Cl|
|00000e90| 69 65 6e 74 4b 44 72 69 | 76 65 72 4c 65 61 76 65 |ientKDri|verLeave|
|00000ea0| 28 50 6c 61 79 65 72 43 | 6f 6e 74 72 6f 6c 6c 65 |(PlayerC|ontrolle|
|00000eb0| 72 20 50 43 29 0d 0a 7b | 0d 0a 09 53 75 70 65 72 |r PC)..{|...Super|
|00000ec0| 2e 43 6c 69 65 6e 74 4b | 44 72 69 76 65 72 4c 65 |.ClientK|DriverLe|
|00000ed0| 61 76 65 28 50 43 29 3b | 0d 0a 09 47 75 6e 2e 53 |ave(PC);|...Gun.S|
|00000ee0| 65 74 42 6f 6e 65 53 63 | 61 6c 65 28 34 2c 20 31 |etBoneSc|ale(4, 1|
|00000ef0| 2e 30 2c 20 27 47 61 74 | 6c 69 6e 67 47 75 6e 41 |.0, 'Gat|lingGunA|
|00000f00| 74 74 61 63 68 27 29 3b | 0d 0a 7d 0d 0a 0d 0a 73 |ttach');|..}....s|
|00000f10| 69 6d 75 6c 61 74 65 64 | 20 66 75 6e 63 74 69 6f |imulated| functio|
|00000f20| 6e 20 43 6c 69 65 6e 74 | 4b 44 72 69 76 65 72 45 |n Client|KDriverE|
|00000f30| 6e 74 65 72 28 50 6c 61 | 79 65 72 43 6f 6e 74 72 |nter(Pla|yerContr|
|00000f40| 6f 6c 6c 65 72 20 50 43 | 29 0d 0a 7b 0d 0a 09 53 |oller PC|)..{...S|
|00000f50| 75 70 65 72 2e 43 6c 69 | 65 6e 74 4b 44 72 69 76 |uper.Cli|entKDriv|
|00000f60| 65 72 45 6e 74 65 72 28 | 50 43 29 3b 0d 0a 09 47 |erEnter(|PC);...G|
|00000f70| 75 6e 2e 53 65 74 42 6f | 6e 65 53 63 61 6c 65 28 |un.SetBo|neScale(|
|00000f80| 34 2c 20 30 2e 30 2c 20 | 27 47 61 74 6c 69 6e 67 |4, 0.0, |'Gatling|
|00000f90| 47 75 6e 41 74 74 61 63 | 68 27 29 3b 0d 0a 7d 0d |GunAttac|h');..}.|
|00000fa0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 4b 44 72 69 |...funct|ion KDri|
|00000fb0| 76 65 72 45 6e 74 65 72 | 28 50 61 77 6e 20 50 29 |verEnter|(Pawn P)|
|00000fc0| 0d 0a 7b 0d 0a 09 73 75 | 70 65 72 2e 4b 44 72 69 |..{...su|per.KDri|
|00000fd0| 76 65 72 45 6e 74 65 72 | 28 50 29 3b 0d 0a 09 69 |verEnter|(P);...i|
|00000fe0| 66 20 28 21 56 65 68 69 | 63 6c 65 42 61 73 65 2e |f (!Vehi|cleBase.|
|00000ff0| 62 44 72 69 76 69 6e 67 | 29 0d 0a 09 09 56 65 68 |bDriving|)....Veh|
|00001000| 69 63 6c 65 42 61 73 65 | 2e 62 44 72 69 76 69 6e |icleBase|.bDrivin|
|00001010| 67 20 3d 20 74 72 75 65 | 3b 0d 0a 7d 0d 0a 0d 0a |g = true|;..}....|
|00001020| 65 76 65 6e 74 20 62 6f | 6f 6c 20 4b 44 72 69 76 |event bo|ol KDriv|
|00001030| 65 72 4c 65 61 76 65 28 | 20 62 6f 6f 6c 20 62 46 |erLeave(| bool bF|
|00001040| 6f 72 63 65 4c 65 61 76 | 65 20 29 0d 0a 7b 0d 0a |orceLeav|e )..{..|
|00001050| 09 6c 6f 63 61 6c 20 62 | 6f 6f 6c 20 62 3b 0d 0a |.local b|ool b;..|
|00001060| 09 62 20 20 3d 20 73 75 | 70 65 72 2e 4b 44 72 69 |.b = su|per.KDri|
|00001070| 76 65 72 4c 65 61 76 65 | 28 62 46 6f 72 63 65 4c |verLeave|(bForceL|
|00001080| 65 61 76 65 29 3b 0d 0a | 09 69 66 20 28 62 20 26 |eave);..|.if (b &|
|00001090| 26 20 56 65 68 69 63 6c | 65 42 61 73 65 2e 49 73 |& Vehicl|eBase.Is|
|000010a0| 56 65 68 69 63 6c 65 45 | 6d 70 74 79 28 29 20 29 |VehicleE|mpty() )|
|000010b0| 0d 0a 09 09 56 65 68 69 | 63 6c 65 42 61 73 65 2e |....Vehi|cleBase.|
|000010c0| 62 44 72 69 76 69 6e 67 | 20 3d 20 66 61 6c 73 65 |bDriving| = false|
|000010d0| 3b 0d 0a 0d 0a 09 72 65 | 74 75 72 6e 20 62 3b 0d |;.....re|turn b;.|
|000010e0| 0a 0d 0a 7d 0d 0a 0d 0a | 73 69 6d 75 6c 61 74 65 |...}....|simulate|
|000010f0| 64 20 66 75 6e 63 74 69 | 6f 6e 20 41 74 74 61 63 |d functi|on Attac|
|00001100| 68 44 72 69 76 65 72 28 | 50 61 77 6e 20 50 29 0d |hDriver(|Pawn P).|
|00001110| 0a 7b 0d 0a 20 20 20 20 | 6c 6f 63 61 6c 20 63 6f |.{.. |local co|
|00001120| 6f 72 64 73 20 47 75 6e | 6e 65 72 41 74 74 61 63 |ords Gun|nerAttac|
|00001130| 68 6d 65 6e 74 42 6f 6e | 65 43 6f 6f 72 64 73 3b |hmentBon|eCoords;|
|00001140| 0d 0a 0d 0a 20 20 20 20 | 69 66 20 28 47 75 6e 20 |.... |if (Gun |
|00001150| 3d 3d 20 4e 6f 6e 65 29 | 0d 0a 20 20 20 20 09 72 |== None)|.. .r|
|00001160| 65 74 75 72 6e 3b 0d 0a | 0d 0a 09 4f 4e 53 44 75 |eturn;..|...ONSDu|
|00001170| 61 6c 41 74 74 61 63 6b | 43 72 61 66 74 28 56 65 |alAttack|Craft(Ve|
|00001180| 68 69 63 6c 65 42 61 73 | 65 29 2e 4f 75 74 70 75 |hicleBas|e).Outpu|
|00001190| 74 54 68 72 75 73 74 20 | 3d 20 30 3b 0d 0a 09 4f |tThrust |= 0;...O|
|000011a0| 4e 53 44 75 61 6c 41 74 | 74 61 63 6b 43 72 61 66 |NSDualAt|tackCraf|
|000011b0| 74 28 56 65 68 69 63 6c | 65 42 61 73 65 29 2e 4f |t(Vehicl|eBase).O|
|000011c0| 75 74 70 75 74 53 74 72 | 61 66 65 20 3d 20 30 3b |utputStr|afe = 0;|
|000011d0| 0d 0a 09 4f 4e 53 44 75 | 61 6c 41 74 74 61 63 6b |...ONSDu|alAttack|
|000011e0| 43 72 61 66 74 28 56 65 | 68 69 63 6c 65 42 61 73 |Craft(Ve|hicleBas|
|000011f0| 65 29 2e 4f 75 74 70 75 | 74 52 69 73 65 20 3d 20 |e).Outpu|tRise = |
|00001200| 30 3b 0d 0a 20 20 20 20 | 50 2e 62 48 61 72 64 41 |0;.. |P.bHardA|
|00001210| 74 74 61 63 68 20 3d 20 | 54 72 75 65 3b 0d 0a 20 |ttach = |True;.. |
|00001220| 20 20 20 47 75 6e 6e 65 | 72 41 74 74 61 63 68 6d | Gunne|rAttachm|
|00001230| 65 6e 74 42 6f 6e 65 43 | 6f 6f 72 64 73 20 3d 20 |entBoneC|oords = |
|00001240| 47 75 6e 2e 47 65 74 42 | 6f 6e 65 43 6f 6f 72 64 |Gun.GetB|oneCoord|
|00001250| 73 28 47 75 6e 2e 47 75 | 6e 6e 65 72 41 74 74 61 |s(Gun.Gu|nnerAtta|
|00001260| 63 68 6d 65 6e 74 42 6f | 6e 65 29 3b 0d 0a 09 50 |chmentBo|ne);...P|
|00001270| 2e 53 65 74 4c 6f 63 61 | 74 69 6f 6e 28 56 65 68 |.SetLoca|tion(Veh|
|00001280| 69 63 6c 65 42 61 73 65 | 2e 4c 6f 63 61 74 69 6f |icleBase|.Locatio|
|00001290| 6e 29 3b 0d 0a 09 50 2e | 53 65 74 42 61 73 65 28 |n);...P.|SetBase(|
|000012a0| 56 65 68 69 63 6c 65 42 | 61 73 65 29 3b 0d 0a 20 |VehicleB|ase);.. |
|000012b0| 20 20 20 50 2e 53 65 74 | 50 68 79 73 69 63 73 28 | P.Set|Physics(|
|000012c0| 50 48 59 53 5f 4e 6f 6e | 65 29 3b 0d 0a 20 20 20 |PHYS_Non|e);.. |
|000012d0| 20 50 2e 53 65 74 50 68 | 79 73 69 63 73 28 50 48 | P.SetPh|ysics(PH|
|000012e0| 59 53 5f 4e 6f 6e 65 29 | 3b 09 2f 2f 20 44 6f 20 |YS_None)|;.// Do |
|000012f0| 69 74 20 74 77 69 63 65 | 20 74 6f 20 68 61 6e 64 |it twice| to hand|
|00001300| 6c 65 20 74 68 65 20 62 | 75 67 2e 0d 0a 20 20 20 |le the b|ug... |
|00001310| 20 47 75 6e 2e 41 74 74 | 61 63 68 54 6f 42 6f 6e | Gun.Att|achToBon|
|00001320| 65 28 50 2c 20 47 75 6e | 2e 47 75 6e 6e 65 72 41 |e(P, Gun|.GunnerA|
|00001330| 74 74 61 63 68 6d 65 6e | 74 42 6f 6e 65 29 3b 0d |ttachmen|tBone);.|
|00001340| 0a 20 20 20 20 50 2e 53 | 65 74 52 65 6c 61 74 69 |. P.S|etRelati|
|00001350| 76 65 4c 6f 63 61 74 69 | 6f 6e 28 44 72 69 76 65 |veLocati|on(Drive|
|00001360| 50 6f 73 29 3b 0d 0a 09 | 50 2e 53 65 74 52 65 6c |Pos);...|P.SetRel|
|00001370| 61 74 69 76 65 52 6f 74 | 61 74 69 6f 6e 28 20 44 |ativeRot|ation( D|
|00001380| 72 69 76 65 52 6f 74 20 | 29 3b 0d 0a 0d 0a 7d 0d |riveRot |);....}.|
|00001390| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 53 68 6f 75 |...funct|ion Shou|
|000013a0| 6c 64 54 61 72 67 65 74 | 4d 69 73 73 69 6c 65 28 |ldTarget|Missile(|
|000013b0| 50 72 6f 6a 65 63 74 69 | 6c 65 20 50 29 0d 0a 7b |Projecti|le P)..{|
|000013c0| 0d 0a 09 69 66 20 28 20 | 41 49 43 6f 6e 74 72 6f |...if ( |AIContro|
|000013d0| 6c 6c 65 72 28 43 6f 6e | 74 72 6f 6c 6c 65 72 29 |ller(Con|troller)|
|000013e0| 20 21 3d 20 4e 6f 6e 65 | 20 26 26 20 41 49 43 6f | != None| && AICo|
|000013f0| 6e 74 72 6f 6c 6c 65 72 | 28 43 6f 6e 74 72 6f 6c |ntroller|(Control|
|00001400| 6c 65 72 29 2e 53 6b 69 | 6c 6c 20 3e 3d 20 35 2e |ler).Ski|ll >= 5.|
|00001410| 30 20 29 0d 0a 09 09 53 | 68 6f 6f 74 4d 69 73 73 |0 )....S|hootMiss|
|00001420| 69 6c 65 28 50 29 3b 0d | 0a 7d 0d 0a 0d 0a 65 76 |ile(P);.|.}....ev|
|00001430| 65 6e 74 20 62 6f 6f 6c | 20 56 65 72 69 66 79 4c |ent bool| VerifyL|
|00001440| 6f 63 6b 28 61 63 74 6f | 72 20 41 67 67 72 65 73 |ock(acto|r Aggres|
|00001450| 73 6f 72 2c 20 6f 75 74 | 20 61 63 74 6f 72 20 4e |sor, out| actor N|
|00001460| 65 77 54 61 72 67 65 74 | 29 0d 0a 7b 0d 0a 09 69 |ewTarget|)..{...i|
|00001470| 66 20 28 56 65 68 69 63 | 6c 65 42 61 73 65 21 3d |f (Vehic|leBase!=|
|00001480| 4e 6f 6e 65 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 |None)...|.return |
|00001490| 56 65 68 69 63 6c 65 42 | 61 73 65 2e 56 65 72 69 |VehicleB|ase.Veri|
|000014a0| 66 79 4c 6f 63 6b 28 41 | 67 67 72 65 73 73 6f 72 |fyLock(A|ggressor|
|000014b0| 2c 4e 65 77 54 61 72 67 | 65 74 29 3b 0d 0a 09 65 |,NewTarg|et);...e|
|000014c0| 6c 73 65 0d 0a 09 09 72 | 65 74 75 72 6e 20 74 72 |lse....r|eturn tr|
|000014d0| 75 65 3b 0d 0a 7d 0d 0a | 0d 0a 00 |ue;..}..|... |
+--------+-------------------------+-------------------------+--------+--------+